package com.hkemmm.shop.service;

import com.hkemmm.shop.entity.Order;
import com.hkemmm.shop.entity.OrderInfo;
import com.hkemmm.shop.entity.Order_detail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IOrderService {
    int countOrder(Integer uid, Integer status);

    int insertSelective(Order record);

    List<Order> getAllOrder();

    List<OrderInfo> getOrderInfo(Integer uid, int[] state, int start);

    int updateStatus(Integer id, Integer uid, Integer status);

    List<Order_detail> selectComment(Integer uid,Integer status);

    List<Order_detail> selectNoComment(@Param("uid") Integer uid);

    int insertSelective(Order_detail record);

    Order selectByCode(String code);

    Order selectByPrimaryKey(Integer id);

    List<Order_detail> selectByOrderId(Integer oid);

    int updateByPrimaryKeySelective(Order record);
}
